import myRequest from './index';

export const getUserListApi = (data: any) => {
  return myRequest<any>('/admin_api/user/list', {
    method: 'POST',
    data,
  });
};

export const editUserApi = (data: any) => {
  return myRequest<any>('/admin_api/user/edit', {
    method: 'POST',
    data,
  });
};

export const addUserApi = (data: any) => {
  return myRequest<any>('/admin_api/user/add', {
    method: 'POST',
    data,
  });
};
